<?php
/*
# ------------------------------------------------------------------------
# JA Job Board Package
# ------------------------------------------------------------------------
# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
# @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
# Author: JoomlArt.com
# Websites: http://www.joomlart.com - http://www.joomlancers.com.
# ------------------------------------------------------------------------
*/
  defined('_JEXEC') or die('Retricted Access');
?>

<script type="text/javascript" language="javascript">
//<![CDATA[
function submitbutton(pressbutton) {
	var form = document.adminForm;

	if (pressbutton == 'cancel') {
		submitform( pressbutton );
		return;
	}
    
	if ( pressbutton == 'save' || pressbutton == 'apply' ){
		if(form.value.value == '' ){
		    alert('<?php echo JText::_('Salary value could not be empty ')?>');
			form.label.focus();
			return;
		}		
		
		submitform( pressbutton );
	}					
	else {
		submitform( pressbutton );
	}
}
//]]>
</script>
<form name="adminForm" action="index.php" method="post">
    <table width="100%">
		<tr>
		
		<td width="80%" valign="top">
			<div style="width:100%;">
				<fieldset>
				<legend><?php if($this->item->id) echo JText::_('Edit Salary'); else echo JText::_('Add Salary');?></legend>
					<table class="admintable">
			        	<tr>
			        		<td class="key" width="20%" align="right">
								<?php echo JText::_( 'Id' ); ?>:
							</td>				
							<td width="80%">
								<strong><?php echo $this->item->id; ?></strong>
							</td>
			        	</tr>	
			        
			        	<tr>
			        		<td class="key" width="20%" align="right">
								<?php echo JText::_( 'Salary Value' ); ?>:
							</td>
							
							<td width="80%">
								<input class="inputbox" type="text" name="value" size="50" maxlength="255" value="<?php echo $this->item->value; ?>" /> 
							</td>				
			        	</tr>
			        	<!--<tr>
			        		<td class="key" width="20%" align="right">
								<?php echo JText::_( 'Salary Params' ); ?>:
							</td>
							<td width="80%">
								<input class="inputbox" type="text" name="params" size="50" maxlength="255" value="<?php echo $this->item->params; ?>" />
							</td>
			        	</tr>-->
			            <tr>
			                <td class="key"><?php echo JText::_("Salary Ordering"); ?></td>
			                <td>
			                    <?php echo $this->ordering; ?>
			                </td>
			            </tr>        	
			        	<tr>
			        		<td class="key" width="20%" align="right">
								<?php echo JText::_( 'Published' ); ?>:
							</td>
							<td width="80%">
								<?php echo $this->published; ?>
							</td>
			        	</tr>
			    	</table>
			    </fieldset>    
			</div>
		</td>
	</tr>
	</table>
	<input type="hidden" name="id" value="<?php echo $this->item->id; ?>" />
	<input type="hidden" name="option" value="<?php echo $this->option; ?>" />
	<input type="hidden" name="view" value="jasalary" />
	<input type="hidden" name="task" value="" />
	<?php echo JHTML::_( 'form.token' ); ?>	
 </form>
